package com.hfut.jpoa.dao;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.UserDTO;
import com.hfut.jpoa.model.Syspara;
import com.hfut.jpoa.model.User;
import java.sql.SQLException;

public interface UserDAO
{
	 
	int deleteByPrimaryKey(String id) throws DaoException;

	Integer insert(User record) throws DaoException;

	void insertSelective(User record) throws DaoException;

	User selectByPrimaryKey(String id) throws DaoException;

	int updateByPrimaryKeySelective(User record) throws DaoException;

	int updateByPrimaryKey(User record) throws DaoException;

	public ResultDto<User> findUserInfoForPage(UserDTO userDTO)
	        throws DaoException;

	/**
	 * 查询用户列表
	 * 
	 * @param user
	 * @return
	 * @throws DaoException
	 */
	public List<User> queryUserList(User user) throws DaoException;
}